package com.tool.cn.mybaties;

import org.mybatis.generator.api.ShellRunner;

@SuppressWarnings("all")
public class CreateObject {
	public static void main(String[] args) {
		ShellRunner shell=new ShellRunner();
		String xml=System.getProperty("user.dir")+"\\src\\com\\tool\\cn\\template\\generator.xml";
		System.out.println(xml);
		args=new String[]{"-configfile",xml,"-overwrite"};
		shell.main(args);
	}

}
